package finalproject.model.items;

import finalproject.model.player.Player;
import finalproject.model.studies.Topic;
import finalproject.view.StringManager;

/**
 * An item to show a player passed a test
 * @author Yassine Tijani
 *
 */
public class ExamItem extends Item {
    
	/**
	 * The player's mark at the test
	 */
    private int mark;
    /**
     * The test's topic
     */
    private Topic topic;
    
    /**
     * 
     * @param name The examitem name
     * @param description the examitem description
     * @param weight the examitem weight
     * @param isPickable if the examitem is pickable
     * @param mark the examitemmark
     * @param topic the examitem topic
     */
    public ExamItem(String name, String description, int weight, boolean isPickable, int mark, Topic topic, boolean isKey, boolean isValue) {
        super(name, description, weight, isPickable, isKey, isValue);
        this.mark = mark;
        this.topic = topic;
                
    }
    
    @Override
    public void use(Player player) {
       
       StringManager.outPut("readingcopy"); 
    }

    /**
     * @return the examitem's mark
     */
    public int getMark() {
        return mark;
    }

    /**
     * @param mark set the mark
     */
    public void setMark(int mark) {
        this.mark = mark;
    }

    /**
     * @return the examitem's topic
     */
    public Topic getTopic() {
        return topic;
    }

    /**
     * @param topic set the topic
     */
    public void setTopic(Topic topic) {
        this.topic = topic;
    }

}
